package org.viettan.android.main.model;

import org.viettan.android.main.R;

/**
 * The {@code InfoSection} holds the resource IDs for each of the info panels
 * in the info menu.
 */
public enum InfoSection {
    ABOUT_VIET_TAN(R.string.info_aboutvt, R.string.info_aboutvt_body),
    OTHER_WEBSITES(R.string.info_websites, R.string.info_websites_body),
    CONTACT(R.string.info_contact, R.string.info_contact_body);

    private final int titleResourceId;
    private final int bodyResourceId;

    private InfoSection(int titleResourceId, int bodyResourceId) {
	this.titleResourceId = titleResourceId;
	this.bodyResourceId = bodyResourceId;
    }

    /**
     * Returns the resource ID of the title of this page.
     */
    public int getTitleResourceId() {
	return titleResourceId;
    }

    /**
     * Returns the resource ID of the HTML body of this page.
     */
    public int getBodyResourceId() {
	return bodyResourceId;
    }
}
